#ifndef XOAREA_H
#define XOAREA_H

#include "FKObject3D.h"

class XOSection;

class FK_OBJECT(XOArea,FKObject3D)
    Q_OBJECT
public:
    int countMarks(const QPoint& pos,const QPoint& direction,const qint8& mark);
    XOSection* nextSection(const QPoint& pos, const QPoint direction=QPoint());
    void addSection(const int& x, const int& y, XOSection* s);
	void reset();
private:
    QMap<int,QMap<int,XOSection*> > _sections;
protected:
	void customInitialization();
	void customDeinitialization();
private:
    struct Servant{
	};
	struct CustomValues{
	};
};

#endif
